import request from '@/utils/request'

// 供应商列表
export function supplierLists(params?: Record<string, any>) {
    return request.get({ url: '/supplier/list', params })
}

// 供应商详情
export function supplierDetail(params: Record<string, any>) {
    return request.get({ url: '/supplier/detail', params })
}

// 供应商新增
export function supplierAdd(params: Record<string, any>) {
    return request.post({ url: '/supplier/add', params })
}

// 供应商编辑
export function supplierEdit(params: Record<string, any>) {
    return request.post({ url: '/supplier/edit', params })
}

// 供应商删除
export function supplierDelete(params: Record<string, any>) {
    return request.post({ url: '/supplier/del', params })
}
